package 预习的;

import java.util.Scanner;

public class 比较两个数的大小 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        System.out.println("请输入您输入的整数：");

        int x = sc.nextInt();

        int y = sc.nextInt();

        int max = getMax(x,y);

        System.out.println("两个数中较大的是"+max);
    }



    public static int getMax(int a, int b) {
        return a > b ? a : b;
    }
}
